﻿@model GameSchoolApplication.Models.UserAccount

<script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Skrá notanda</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.userID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.userID)
            @Html.ValidationMessageFor(model => model.userID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.userName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.userName)
            @Html.ValidationMessageFor(model => model.userName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.passW)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.passW)
            @Html.ValidationMessageFor(model => model.passW)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.name)
            @Html.ValidationMessageFor(model => model.name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.email)
            @Html.ValidationMessageFor(model => model.email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.sbux)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.sbux)
            @Html.ValidationMessageFor(model => model.sbux)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.points)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.points)
            @Html.ValidationMessageFor(model => model.points)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.isAdmin)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.isAdmin)
            @Html.ValidationMessageFor(model => model.isAdmin)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

